Copyright(C) 1994,1995,1996,1997 Terumasa KODAKA , Takeshi KONO ■I/O ports specific to the 98NOTE series Target: 98NOTE Explanation: The 98NOTE series has many special features not found on desktop models. ------------+-------+-----+------------------------------------------ I/O address | Width | R/W | Name ------------+-------+-----+------------------------------------------ 0800h | BYTE | R/W | Tablet related 0802h | BYTE | R/W | Tablet related 0804h | BYTE | R/W | Tablet related 8810h | BYTE | R/W | Power status, etc. 198Eh | BYTE | R/W | Card related 498Eh | BYTE | R/W | Power saving mode related 998Eh | BYTE | R/W | LCD upside down C98Eh | BYTE | W | LCD inversion D98Eh | BYTE | R/W | Battery refresh control 2B8Eh | BYTE | R/W | SMI request 6B8Eh | BYTE | R/W | Dedicated expansion RAM board capacity reading 8B8Eh | BYTE | R/W | SMRAM mapping control 9B8Eh | BYTE | R/W | Cache area control FC8Eh | BYTE | R/W | I/O card usage interrupt channel setting 3D8Eh | BYTE | R/W | Warning beep 4D8Eh | BYTE | R/W | Battery monitoring AD8Eh | BYTE | R/W | Read battery status CD8Eh,DD8Eh | BYTE | R/W | I/O port for saving modem settings ED8Eh | BYTE | R/W | I/O port for saving NOTE settings FD8Eh | BYTE | R/W | I/O port for saving RAM DRIVE settings 0E8Eh | WORD | R/W | DA bank address setting 1E8Eh | WORD | R/W | Bank RAM switching 2E8Eh | WORD | R/W | Built-in protected memory capacity 4E8Eh | BYTE | R/W | ROM bank selection 5E8Eh | WORD | R/W | LED/LCD settings 6E8Eh | BYTE | R/W | Built-in modem control for NOTE (1) 7E8Eh | BYTE | R/W | Built-in modem control for NOTE (2) 8E8Eh | BYTE | R/W | Various NOTE controls 9E8Eh | BYTE | R/W | Various NOTE controls AE8Eh | BYTE | R/W | Various NOTE controls BE8Eh | BYTE | R/W | Various NOTE controls CE8Eh | BYTE | R/W | Various NOTE controls EE8Eh | BYTE | R/W | EGC mask settings FE8Eh | BYTE | R/W | SMI mask settings 0F8Eh | BYTE | R/W | 98NOTE expansion card slot 1F8Eh | BYTE | R | Read card type register 4F8Eh,5F8Eh | WORD | R/W | I/O mapped serial memory 6F8Eh | BYTE | R/W | Set DMA channel used by I/O card 7F8Eh,8F8Eh | WORD | R/W | I/O trap control 9F8Eh,AFE8h | WORD | R/W | I/O trap control BF8Eh | WORD | R/W | I/O trap control ------------+-------+-----+------------------------------------------ * Basically, I/O address xy8Eh (x is 0-F, y is 8-F) is used to control special functions of 98NOTE. o Some of these I/Os are used for similar purposes on desktop models. Related I/O 08F0h,08F2h I/O 0900h,0906h I/O 0800h Name Tablet related Undocumented Target PC-9801P Function [READ] When read a maximum of 11 times, bit 7 becomes 1. Number of times INT 1Fh-9B0Dh I/O READ value register D800h work address 0 bit 6-3 --> AL bit 3-0 2007h 1 bit 6-2 --> AH bit 4-0 2006h Tap, button status 2 bit 6-1 --> SI bit 13-8 2009h (X MSB) bit 0 --> SI bit 7 2008h (X LSB) 3 bit 7-0 --> SI bit 7-0 2008h (X LSB) 4 bit 5 --> AH bit 7 2006h Pen inside screen 5 bit 6-1 --> DI bit 13-8 2009h (Y MSB) bit 0 --> DI bit 7 2008h (Y LSB) 6 bit 7-0 --> DI bit 7-0 2008h (Y LSB) 7 bit 6 --> CH bit 7 202Dh Tilt to the left or right Extends 7-bit signed value to 8-bit 8 bit 6 --> CL bit 7 202Ch Tilt to the front or back Extends 7-bit signed value to 8-bit 9 bit 7-0 --> BL bit 7-0 202Ah ? 10 bit 7-0 --> BH bit 7-0 202Bh Pen distance [WRITE] bit 7-0: Command * Details unknown Explanation o Reads tablet information and controls it. o Details unknown. u This I/O is also available on the PC-9801NS/R, but does not actually work. Related INT 1Fh PENBIOS I/O 0804h Name Tablet related Undocumented Target PC-9801P Function [WRITE] Bit 7-0: Details unknown [READ] Bit 7: Command READY 1 = Commands can be accepted 0 = Commands cannot be accepted Bit 6: Pen detection 1 = Pen is detected. 0 = Pen is not detected Bit 5-2: Unknown Bit 1: Unknown Bit 0: Unknown Explanation o Reads tablet information and controls it. o Details unknown. u PC-9801NS/R also has this I/O, but it does not actually work. Related INT 1Fh PENBIOS I/O 8810h Name Power status, etc. Undocumented Target PC-9801N, NS, NS/E, NC, NS/T, NL, NS/L, NA, NS/R, P, NX/C, NS/A, NL/R PC-9821Ne PC-98HA Function [READ]■[98NOTE] bit 7: CRT pack connection flag■[PC-9801NS/T, NA, NS/R, NX/C] 1 = CRT pack is connected 0 = CRT pack is not connected bit 6: Unknown■[PC-9801NC,PC-9821Ne] bit 5: Color LCD flag■[PC-9801NS/R, NX/C] 1 = Color LCD model 0 = Monochrome LCD model * In reality, the color LCD model of the PC-9801NS/R was not released. In fact, a monochrome LCD model of the PC-9801NX/C was never released. bit 5: I/O unit connection status ■ [PC-9801P] 1 = connected 0 = not connected bit 4: Unknown ■ [PC-9801NS/R or later] bit 3: Backup switch ■ [PC-9801NS/T・NL・NS/L・NA・NS/R・P・NX/C・NS/A PC-9801NL/R, PC-9821Ne] 1 = Backup switch ON 0 = Backup switch OFF bit 2: AC adapter 1 = Running on AC adapter 0 = No AC adapter bit 1: Low battery 1 = Low battery 0 = Battery remaining bit 0: Expansion I/O box ■ [PC-9801NS/T・NL・NS/L・NA・NS/R・P・NX/C・NS/A・NL/R PC-9821Ne] 1 = connected 0 = not connected [READ]■[PC-98HA] bit 7: Docking station status 0 = PC-98HA alone 1 = PC-98HA + docking station bit 6: AC adapter 1 = AC adapter connected 0 = Battery powered bit 4: Unknown bit 3: Unknown (usually 1) bit 2: Lithium battery status 1 = Lithium battery is LOW BATTERY 0 = Lithium battery is charging bit 1: Battery status 1 = LOW BATTERY 0 = Charging bit 0: POWER SW■[PC-98LT・HA] 1 = OFF 0 = Normal [WRITE]■[PC-98LT・HA,PC-9801LV] bit 5: Unknown bit 2: Standby mode setting■[PC-98HA] 1 = Enter standby mode 0 = Normal bit 0: Power off 1 = Yes 0 = No Explanation o Gets the status of the power supply type, etc. Related 0000:0480h 0000:045Ch I/O AD8Eh I/O 198Eh Name Card related Target PC-9801NS/R・P・NX/C・NS/A, PC-9821Ne Function [READ/WRITE] bit 7-6: Unknown bit 5: Modem card selection 1 = Main unit RS-232C selection 0 = Card slot bit 4-0: Unknown Explanation o Select whether to process RS-232C using the main unit's USART or the modem card in the card slot. Related I/O 0F8Eh I/O 1F8Eh I/O 498Eh Name Power saving mode related Undocumented Target PC-9801NS/R・P・NX/C・NS/A・NL/R, PC-9821Ne PC-9821Ap・As・Ae・Ce・Af Function [READ/WRITE] bit 7: Unknown ■ [PC-9821Ne, PC-9801NS/A] bit 6-1: Unused (set to 0) bit 0: Power saving mode control 0 = Do not save power 1 = Save power Explanation o Used in power saving mode. o Halves the CPU clock I/O 998Eh Name LCD inversion Undocumented Target PC-9801NS/R・P・NL/R Function [READ/WRITE] Bits 7-2: Unused (set to 0) Bit 1: Monochrome screen freeze 0 = Do not freeze 1 = Freeze Bit 0: Invert 0 = Do not invert 1 = Invert Explanation u Sets LCD inversion. Only inverts the screen upside down, not upside down. o On the PC-9801P, the SMM monitors the screen inversion switch and operates this I/O port. Related INT 1Fh - Function 92h I/O C98Eh Name LCD inversion Undocumented Target PC-9801NL/A Function [WRITE] bit 7-2: Unused (set to 0) bit 1: LCD inversion 1 = Reverse 0 = Normal bit 0: Unused (set to 0) Explanation o Sets LCD inversion. o On the PC-9801NL/A, the LCD inversion state does not change just by manipulating I/O 871Eh bit 0. To change the actual hardware state, you need to manipulate this I/O port. Related I/O 871Eh bit 0 I/O D98Eh Name Battery refresh mode setting Undocumented Target PC-9801NS/R・P・NX/C, PC-9821Ne Function [READ/WRITE] Bit 7-1: Unused Bit 0: Battery refresh mode 1 = Set 0 = Cancel Explanation u Set battery refresh mode Related I/O E98Eh Name Unknown Undocumented Target PC-9801NL/A Function [READ/WRITE] Bit 7-1: Unused Bit 0: Unknown Explanation o Details unknown Related I/O 2B8Eh Name SMI request Undocumented Target SMM-equipped machine Function [READ] Bit 15-9: Unused? Bit 8: Cache full ■ [PC-9801NS/T] 0 = Cache not full 1 = Cache full Bit 7-1: Unused? bit 0: SMI request 1 = SMI request in progress 0 = No SMI request [WRITE] bit 15-1: Unused? bit 0: SMI request 1 = SMI request in progress 0 = No SMI request Description o Generates an SMI. Related I/O FE8Eh I/O 6B8Eh Name Read dedicated expansion RAM board capacity Undocumented Target PC-9801NS/T・NA・NS/R・NX/C・NS/A・NL/R・NL/A, PC-9821Ne Function [READ] PC-9801NS/T expansion RAM board ■ [PC-9801NS/T] bit 7-2: Unused bit 1-0: Expansion RAM board capacity 11b = Undefined 10b = Internal expansion 2MB 01b = Internal expansion 6MB 00b = No internal expansion [READ] PC-9801NA expansion RAM board ■ [PC-9801NA] bit 7-2: Unused bit 1-0: Expansion RAM board capacity 11b = No internal expansion 10b = Internal expansion 2MB 01b = Internal expansion 4MB 00b = 8MB internal expansion [READ] PC-9801NS/R expansion RAM board ■ [PC-9801NS/R] bit 7-3: Unused bit 2-0: Expansion RAM board capacity 111b = No internal expansion 110b = 2MB internal expansion 101b = 4MB internal expansion 100b = 6MB internal expansion 011b = 8MB internal expansion 010b = 10MB internal expansion 001b = Undefined 000b = Undefined [READ] PC-9801P internal RAM capacity ■ [PC-9801P] bit 7: Always returns to 1 bit 6-3: Unused bit 2-0: PEN internal RAM capacity Always changes to 100b 100b = 6MB internal memory [READ] PC-9801NX/C additional RAM board information, etc. ■ [PC-9801NX/C] bit 7: Standard installed memory identification 1 = HDD model (3.6MB) 0 = FDD model (1.6MB) bit 6-3: Unused bit 2-0: Additional RAM board capacity 111b = No internal expansion 110b = Internal expansion 2MB 101b = Internal expansion 4MB 100b = Internal expansion 6MB 011b = Internal expansion 8MB 010b = Internal expansion 10MB 001b = Internal expansion 12MB 000b = Undefined [READ] PC-9821Ne additional RAM board information, etc. ■ [PC-9821Ne] bit 7: Standard installed memory identification 1 = HDD model (5.6MB) 0 = FDD model (3.6MB) bit 6: Unused? bit 5: Built-in speaker 1 = Use 0 = Not use bit 4: Status indicator 1 = Use 0 = Not use bit 3: Pointing device selection 1 = Use thumbball 0 = Use mouse bit 2-0: Additional RAM board capacity 111b = No internal expansion 110b = Internal expansion 2MB 101b = Internal expansion 4MB 100b = Internal expansion 6MB 011b = Internal expansion 8MB 010b = Internal expansion 10MB 001b = Internal expansion 12MB 000b = Undefined [READ] PC-9801NS/A Additional RAM board information ■ [PC-9801NS/A] bit 7: Standard installed memory identification 1 = HDD model (3.6MB) 0 = FDD model (1.6MB) bit 6: Unused bit 5: 16MB system space 1 = Normal RAM 0 = ROM image bit 4: Battery refresh 1 = Yes 0 = No bits 3-1: Additional RAM board capacity 111b = No internal expansion 110b = 2MB internal expansion 101b = 4MB internal expansion 100b = 6MB internal expansion 011b = 8MB internal expansion 010b = 10MB internal expansion 001b = 12MB internal expansion 000b = 16MB internal expansion bit 0: Unknown [READ] PC-9801NL/R additional RAM board ■ [PC-9801NL/R] bit 7: Standard installed memory identification 1 = HDD model (3.6MB) 0 = FDD model (1.6MB) * However, the PC-9801NL/R was only released in the HDD model bit 6-3: Unused bit 2-0: Additional RAM board capacity 111b = No internal expansion 110b = Internal expansion 2MB 101b = Internal expansion 4MB 100b = Internal expansion 6MB 011b = Internal expansion 8MB 010b = Internal expansion 10MB 001b = Internal expansion 12MB 000b = Undefined [WRITE] PC-9821Ne thumbball/mouse ■ [PC-9821Ne] bit 7-6: Not used bit 5: Built-in speaker 1 = Use 0 = Do not use bit 4: Status indicator 1 = Use 0 = Do not use bit 3: Pointing device selection 1 = Use thumbball 0 = Use mouse bit 2-0: Do not use [WRITE] PC-9801NS/A Additional RAM board information ■ [PC-9801NS/A] bit 5: 16MB system space 1 = Normal RAM 0 = ROM image bit 4: Battery refresh 1 = Yes 0 = No [WRITE] PC-9801NL/A Additional RAM board information ■ [PC-9801NL/A] bit 5: 16MB system space 1 = Normal RAM 0 = ROM image bit 4: Battery refresh 1 = Yes 0 = No Description o Reads the capacity of the dedicated additional RAM board. u You can tell whether it's a model with HDD or FDD by the memory capacity built into the device. Related I/O 8B8Eh Name SMRAM mapping control Undocumented Target PC-9801NS/R・P・NX/C・NS/A・NL/R, PC-9821Ne Function [READ/WRITE] bit 7-2: Unknown bit 1: SMRAM mapping 1 = Yes 0 = No bit 0: Unknown Explanation o Maps SMRAM to main memory u Destroying SMRAM may result in the power not even being turned off, so do not use it under any circumstances u In the PC-9821Ne, this I/O port is used to patch SMRAM to correct the built-in calendar clock μPD4993 using IO.SYS. Related I/O FE8Eh I/O 9B8Eh Name Cache area control Undocumented Target PC-9821Ne, PC-9801NS/A Function [WRITE] Bit 7-4: Unknown * Set to 1101b when cache is enabled. Bit 3-0: Cache area upper limit setting 0000b = 000000-0FFFFFh area cache enabled 0001b = 000000-1FFFFFh area cache enabled : : 1101b = 000000-DFFFFFh area cache enabled 1110b = 000000-EFFFFFh area cache enabled 1111b = 000000-EFFFFFh area cache enabled Explanation o Sets the cache enabled area of the dedicated internal memory. o Details unknown Related I/O 6B8Eh I/O 4C8Eh Name Pointing device selection Undocumented Target PC-9821Np, Ns, Ne2, Nd, Ld, Lt, Nf, Nm, Ne3, Nd, Na7, Nx, PC-9801NL/A Function [READ/WRITE] bit 7-1: Unused (set to 0) bit 0: Pointing device selection 1 = Mouse 0 = Thumbball ■ [Except PC-9821Na7, Nx] 0 = 98 Slide Pad ■ [PC-9821Na7, Nx] Explanation o Selects the pointing device. If you select mouse, you can get a signal from the external mouse connector. Related I/O 8C1Eh bit 4 I/O FC8Eh Name I/O card interrupt channel setting Undocumented Target PC-9801NS/T・NL・NS/L・NA・NS/R Function [WRITE] bit 7: Always 1 bit 6-4: Interrupt B channel 111b = Do not use interrupt 110b = INT6 101b = INT5 100b = INT4 011b = INT3 010b = INT2 001b = INT1 000b = INT0 bit 3: Always 1 bit 2-0: Interrupt B channel 111b = Do not use interrupt 110b = INT6 101b = INT5 100b = INT4 011b = INT3 010b = INT2 001b = INT1 000b = INT0 Explanation o Sets the interrupt channel used by the I/O card Related I/O 8E1Eh I/O 3D8Eh Name Battery warning beep Undocumented Target 98NOTE■[Excluding N/NS] PC-9821■[Excluding the original/Ap/As/Ae/Af] PC-9801BA2/BS2/BX2/BA3/BX3/BX4 Function [READ/WRITE] bit 7-4: Unused (always 0) bit 3: Unknown bit 2: Unknown bit 1: Battery warning beep 1 = Beep 0 = Do not beep bit 0: Unused (always 0) Function u Operates independently of the normal beep. Pitch is fixed at 2.4kHz. In 98NOTE and 98PEN, this is used as a warning sound when the battery is low. In PCMCIA2.0 equipped machines, CARDSET.SYS uses this sound when changing cards. Related I/O 4D8Eh Name Battery monitor Undocumented Target PC-9801NS/T and later Function [READ/WRITE] bit 7: Unused bit 6: Unknown bit 5-1: Unused bit 0: Battery monitor 1 = Voltage level was maintained 0 = Voltage level dropped once Explanation o Used to check if data is valid when returning from suspend resume. o Indicates whether the battery voltage level was maintained while the power was off. Related I/O AD8Eh Name Battery status read Undocumented Target PC-9801NS/E・NC・NS/T・NS/L・NA・NS/R・P・NX/C・NS/A PC-9821Ne・Np・Ns・Ne2・Nd・Nf・Ne3・Nd2・Na7・Nx Function [WRITE] bit 7: Battery selection ■ [PC-9821Ne excluded] 1 = 2nd battery selection (but invalid for NL・NS/L) 0 = 1st battery selection bit 5: Battery selection ■ [PC-9821Ne only] 1 = 2nd battery selection 0 = 1st battery selection [READ] bit 7: Battery selection ■ [PC-9821Ne excluded] 1 = 2nd battery selection 0 = 1st battery selection bit 6: Status valid flag 1 = Battery status valid 0 = Battery status invalid bit 5: Battery selection ■ [PC-9821Ne only] 1 = 2nd battery selection 0 = 1st battery selection bit 3-0: Battery status ■ [PC-9801NS/E・NC] 0nnnb = Battery remaining capacity [0-7] 1111b = Battery remaining capacity [8] 1001b = Battery remaining capacity [0] 1000b = Battery not connected 1100b = Battery abnormality bit 4-0: Battery status ■ [PC-9801NS/T or later] x1xxxb = Undetermined 00nnnb = Battery remaining capacity [0-7] 10111b = Battery remaining capacity [8] 10001b = Battery remaining capacity [0] 10000b = Not connected 10010b = Initial charge or deep discharge (determined by I/O 8810h) 10100b = Abnormal 10xxxb = Invalid Explanation o Reads remaining battery power, etc. Related I/O 8810h INT 1Fh - Function 9A0Ah I/O CD8Eh,DD8Eh Name I/O port for saving modem settings Undocumented Target PC-9801N, NS, NS/E, NC Explanation o Saves modem settings. u Uses software dip switches for NS/T and later. Related I/O 6E8Eh,7E8Eh INT 1Fh - Function 96h INT 1Fh - Function 97h I/O ED8Eh Name I/O port for saving NOTE settings Undocumented Target PC-9801NS/E・NC Function [READ/WRITE] Bits 7-4: Auto power off time setting 1111b = Do not use auto power off : 0000b = Auto power off 1 minute Bits 3,2: EMS function setting 11b = Not used 10b = Sound 01b = Network 00b = Use Bits 1,0: Built-in modem setting 11b = Half-duplex 10b = AT 01b = V25bis 00b = Not used Explanation o Used to save various information set in the NOTE menu. u NS/T and later use software DIP switches. Related I/O FD8Eh Name I/O port for saving RAM DRIVE settings Undocumented Target PC-9801NS/E・NC Function [READ/WRITE] bit 7: Parity matching (ODD) * Serves as parity for both I/O FD8Eh and I/O ED8Eh bit 6: Memory for RAM drive 1 = Not used 0 = Used bit 5: Note menu patch information 1 = Yes 0 = No bit 4: RAM drive write 1 = Prohibited 0 = Permitted bit 3: First drive specification 1 = FDD 0 = RAM drive bit 2,1: System startup device specification 11b = FD priority 10b = RAM DRIVE 01b = FD bit 0: RAM drive 1 = Used 0 = Not used/Protected memory Explanation o Related I/O 0E8Eh Name DA bank address setting Undocumented Target 98NOTE■[PC-9821Np・Ns・Ne2・Nd・Es・Ld・Lt・Nf・Nm・Ne3・Nd2・Na7・Nx, excluding PC-9801NL/A] Function [READ/WRITE] bit 15-8: Upper 8 bits of bank RAM address ■[PC-9801NS/T・NL・NS/R・P・NX/C・NS/A・NL/R,PC-9821Ne] bit 7-0: Bank RAM address * The use of bank RAM varies depending on the model Explanation o Sets the bank address that appears in DA000-DBFFFh. u When selecting bank RAM for the RAM drive, the capacity of the dedicated additional memory must be taken into consideration. u This I/O is also used to set the window projection address of the PCMCIA card. Related 0000:048Eh bit 6-4■[PC-9801NS/T・NL・NS/R・P・NX/C・NS/A・NL/R,PC-9821Ne] 0000:059Ch I/O 1E8Eh I/O 6E8Eh I/O 1E8Eh Name Bank RAM switching Undocumented Target PC-9801NL, PC-98HA Models with IDE Function [READ/WRITE] bit 7-0: Bank switching 10000000b(80h) = ROM image to DA000-DBFFFh 10000001b(81h) = IDE work RAM selection to DA000-DBFFFh■[DESKTOP] 10000001b(81h) = Bank RAM selection to DA000-DBFFFh■[NOTE] 10000010b(82h) = PC card window selection to DC000-DDFFFh■[HA only] 10000100b(84h) = PC card window selection to DA000-DBFFFh ■[PC-9801NL・P・NX/C・NS/A・NL/R, PC-9821Ne] 10010000b(90h)= Select ROM disk from DA000 to DBFFFh■[PC-9801NL only] Explanation u Sets the type of bank memory that appears from DA000 to DBFFFh. u Sets the type of bank memory that appears from DC000 to DDFFFh. o Used by MECIA3 to project PC card memory. Related 0000:059Dh I/O 0E8Eh I/O 2E8Eh Name Internal protected memory capacity Undocumented Target PC-9801NS/A Function [WRITE] bit 7-1: Unused bit 0: RAM DRIVE memory usage 0 = Used as RAM drive 1 = Used as protected memory Related I/O 871Eh bit4 I/O 4E8Eh Name ROM bank selection Undocumented Target 98NOTE Function [READ/WRITE] bit 7: Bank ROM appearance flag ■ [Other than PC-9821Na7/Nx] 1 = Bank ROM appears 0 = Bank ROM is masked bit 6-0: Bank ROM address setting Explanation o Sets the address of the bank ROM that appears in D8000-D9FFFh Related I/O 5E8Eh Name LED/LCD setting Undocumented Target 98NOTE series Function [READ/WRITE]■[PC-9821Ne・Np・Ns・Ne2・Nd・Nf・Ld・Lt・Nm・Ne3・Nd2・Na7・Nx excepted] bit 7: Unknown■[PC-9801NS/T and later] bit 6: Unknown■[PC-9801NS/A] bit 6-4: Unused(?) bit 3,2: RAM DRIVE LED setting 11b = Red 10b = Red 01b = Amber 00b = Off bit 1: Unused(?) bit 0: FDD LED setting 1 = Amber 0 = Off [READ/WRITE]■[PC-9821Ne・Np・Ns・Ne2・Nd・Nf・Ld・Lt・Nm・Ne3・Nd2・Na7・Nx] bit 7: Unknown bit 6: Unknown bit 5: Unused(?) bit 4: FDD pattern 1 = On 0 = Off bit 3: RAM chip pattern 1 = On 0 = Blinking/Off * Once lit, this bit cannot be used to turn it off. For PC-9821Ne, you can turn off the RAM chip pattern by using I/O 6B8Eh to set the status indicator to not be used. bit 2: Bar below RAM 1 = On 0 = Off bit 1: Unused bit 0: Bar below FDD 1 = On 0 = Off Explanation u Controls the various LEDs on the NOTE. u In PC-9821Ne, Np, Ns, Ne2, Nd, Ld, Lt, and Nf, it controls the status indicator. Related I/O 6B8Eh■[PC-9821Ne] I/O 6E8Eh Name Internal modem control for NOTE (1) Undocumented Target 98NOTE series (excluding NL/NS/L/P/NS/A/NL/R/Ne), HA+ docking station Function [READ] None [WRITE] bit 7: Buzzer stop 1 = No 0 = Yes bit 6,5: Dial mode 11b = 20PPS 01b = 10PPS 00b = Tone bit 4: Loopback test 1 = No 0 = Yes bit 3,2: Communication speed 11b = AUTO 10b = 1200bps 01b = 300bps 00b = 2400bps bit 1,0: Modem mode 10b = CALL 01b = ANS 00b = AUTO Explanation o Related I/O CD8Eh■[Up to PC-9801NC] I/O 891Eh■[PC-9801NS/T and later] I/O 7E8Eh INT 1Fh - Function 96h INT 1Fh - Function 97h I/O 6E8Eh Name Mouse emulation (button) Undocumented Target PC-9801P Function [WRITE] bit 7: LEFT bit 6: Unused(?) bit 5: RIGHT bit 3-0: Unknown Explanation o For PC-9801P mouse emulation, it is used to emulate the state of the mouse buttons visible from the mouse port. Related I/O 7FD9h I/O 7FDDh I/O 7E8Eh Name Internal modem control for NOTE (2) Undocumented Target 98NOTE series (excluding NL/NS/L/P/NS/A/NL/R/Ne), HA+ docking station Function [READ] None [WRITE] Modem control bit 7: Use modem 1 = Yes 0 = No bit 6: Not in use? bit 5: Loss of carrier disconnect 1 = No 0 = Yes bit 4: Select CI option 1 = No 0 = Yes bit 3: Select CD option 1 = No 0 = Yes bit 2: Confirm answer tone 1 = No 0 = Yes bit 1: Send answer tone 1 = No 0 = Yes bit 0: Automatic answer 1 = No 0 = Yes Explanation o Related I/O DD8Eh■[PC-9801NS・NV・NS/E・NC] I/O 8A1Eh■[PC-9801NS/T and later] I/O 6E8Eh INT 1Fh - Function 96h INT 1Fh - Function 97h I/O 8E8Eh Name NOTE Various Controls Undocumented Target PC-9801NS/NV/NS/E/NC Function [READ/WRITE] Software DIP Switch bit 7: Internal FDD drive number 1 = 1,2 0 = 3,4 bit 6: Parity matching bit 5: Main memory capacity 1 = 640KB 0 = 512KB bit 4: CPU mode 1 = V30 10MHz equivalent 0 = i386SX bit 3: GDC clock 1 = 2.5MHz 0 = 5.0MHz bit 2: Graphics mode 1 = Basic mode 0 = Extended mode bit 1,0: RS-232C synchronization 11b = Asynchronous synchronization 10b = Synchronized clock 01b = ST2 synchronization 00b = BCI synchronization Explanation o Used to save various information set in the Note menu. u Software DIP switches are used in NS/T and later. Related I/O 9E8Eh Name NOTE various controls Undocumented Target PC-9801NS/NV/NS/E/NC Function [READ/WRITE] Get/set various status bit 7: Parity adjustment bit 6: Memory switch 1 = Do not hold 0 = Hold bit 5: Unknown bit 4: VF key 1 = Use 0 = Do not use bit 3: Internal HDD 1 = Use 0 = Disconnect Explanation o Used to save various information set in the Note menu. u Software DIP switches are used in NS/T and later. Related I/O AE8Eh Name NOTE various controls Undocumented Target PC-9801NS/NV/NS/E/NC Function [READ/WRITE] Get/set various status bit 7: Parity match (Odd) bit 6,5: BEEP volume control 11b = Maximum 10b = : 01b = : 00b = Mute bit 4: Internal drive number bit 3: LCD grayscale 1 = 2 grayscale 0 = 8 grayscale bit 2: LCD inversion 1 = Reverse (blue/black background) 0 = Normal (white background) bit 1: GDC clock 1 = 2.5MHz 0 = 5.0MHz bit 0: GRPHmode 1 = Basic mode 0 = Extended Explanation o Saves various hardware settings. u For NS/T and later, use software DIP switches. Related I/O BE8Eh Name NOTE Various Controls Undocumented Target PC-9801NS/NV/NS/E/NC Function [READ/WRITE] bit 7: Parity Match (Odd) bit 6,5: Unused? bit 4: Resume 1 = Yes 0 = No bit 3: HDD sector capacity 1 = 512 bytes/sector 0 = 256 bytes/sector bit 2: RS-232C 1 = Use 0 = Not used bit 1: CRT mode 1 = Plasma display mode 0 = CRT mode bit 0: RAMmode 1 = Extended RAM 0 = Compatible drive Explanation o Gets and sets RAM mode, etc. u For NS/T and later, use software DIP switches. Related 0000:0457h bit7 0000:0400h bit5 I/O 08F0h,08F2h - 0056h bit0 I/O 006Ah - 40h,41h I/O CE8Eh Name LCD control for NOTE Undocumented Target PC-9801NS Function [READ/WRITE] bit 7: LCD light 1 = ON 0 = OFF bit 6-0: Unused? Explanation o Gets and sets the LCD light status. Related I/O EE8Eh Name EGC mask setting Undocumented Target PC-9801NV・NS/E・NC Function [READ/WRITE] bit 7-1: Unused bit 0: EGC mask 1 = Do not mask EGC (when resume is not set) 0 = Mask EGC (when resume is set) Explanation o Sets and cancels EGC mask. o Since EGC does not support resume on PC-9801NS/E・NC, setting resume will disable EGC. u The PC-9801NV is equipped with an EGC, but the ITF is set so that the EGC cannot be used regardless of the resume setting. o For the PC-9801NS, it is used for a different purpose. Related 0000:054Dh bit6 I/O 04A0-04AEh I/O FE8Eh Name SMI mask setting Undocumented Target PC-9801NS/T・NS/R・P・NX/C・NS/A・NL/R, PC-9821Ne Function [READ/WRITE] bit 7-1: Unused (always 1) bit 0: SMI enabled 0 = SMI disabled 1 = SMI enabled Explanation o Disables/enables the occurrence of SMI. o For machines equipped with SMM, power OFF and other operations are also performed within SMM, so SMI should not be stopped for long periods of time. Related I/O 2B8Eh I/O 0F8Eh Name 98NOTE expansion card slot Undocumented Target PC-9801N, NS, NV, NS/E, NC, NS/T, NL, NS/L, NA, NS/R PC-98DO+ PC-9801UR, UF, US Function [READ] Read card ID/expansion card ID After reset, or when reading immediately after reading from 1F8Eh, the card ID is read. After reading from 0F8Eh once, the expansion card ID is read. ・Card ID NEC product bit 7 = 0 bit 6 = 0, bit 5-0 = card type bit 6 = 1, bit 5-0 = reserved Third-party product bit 7= 1 bit 6-0: Manufacturer code ・Expansion card ID bit 7-0 = card type 01h = expansion RAM card 03h = full-duplex modem card [WRITE] Card switch register write Register for writing card-specific setting information ・Expansion RAM card (PC-9801N-01U, 02U, 03, 04) bit 7-4: A23-A20 Memory start address bit 3: SWU C8000-CFFFFh enable control 1 = disable 0 = enable bit 2: SWL C0000-C7FFFh enable control 1 = disable 0 = enable bit 1: WAT RDY terminal timing 1 = Shortened (wait cancel) 0 = Normal bit 0: ENB Memory access enable control 1 = Enable 0 = Disable ・Recommended usage of I/O cards bit 7-2: Open to user bit 1: RSM Resume state notification 1 = Notifies that reset or resume has been canceled. 0 = Notifies that resume has been completed successfully. bit 0: POW Power control 1 = Turns the I/O card on or puts it into operation. 0 = Turns the I/O card off or puts it into standby. At this time, access to the memory and I/O of the I/O card is prohibited. Description o Controls the inserted card. Related I/O 1F8Eh I/O 1F8Eh Name Read card type register Undocumented Target PC-9801N, NS, NV, NS/E, NC, NS/T, NL, NS/L, NA, NS/R PC-98DO+ PC-9801UR, UF, US Function [READ] bit 7: CC1 - CC1,CC2=10: Card connected CC1,CC2=Other: Card not connected bit 6: PE - Expansion card is fixed to 0 bit 5: WP 1 = Write protect switch ON 0 = Write protect switch OFF bit 4: Reserve - Expansion card is fixed to 1 bit 3: Reserve - Expansion card is fixed to 1 bit 2: CC2 - See CC1 bit 1: T1 1 = 3V/5V compatible card 0 = 5V only card bit 0: T0 1 = I/O card 0 = Expansion RAM card Explanation o Reads the information of the inserted card. Related I/O 0F8Eh I/O 4F8Eh,5F8Eh Name I/O mapped serial memory Undocumented Target NV and later Explanation u Accesses the I/O mapped serial memory used to save the contents of VRAM I/O 6F8Eh Name I/O card DMA channel setting Undocumented Target I/O card compatible models (PC-9801NS/T・NL・NS/L・NA・NS/R) Function [WRITE] bit 7: Always 1 bit 6-2: Always 0 bit 1,0: DMA channel used by card 11b = CH3 10b = Do not use DMA 01b = Unknown (undefined?) 00b = CH0 Explanation u Sets the DMA channel used by the I/O card Related I/O 8E1Eh I/O 7F8Eh,8F8Eh,9F8Eh,AF8Eh,BF8Eh Name I/O trap control Undocumented Target PC-9801NV・NS/E・NC・NS/T・NL・NS/L・NA・NS/R・P・NX/C・NS/A・NL/R,PC-9821Ne Explanation o When the CPU accesses an I/O port that cannot be read due to resume, this function generates an NMI and captures access to the I/O port. o This I/O is actually used in PC-9801NV・NS/E・NC・NL・NS/L・NA. o Details unknown.